const express =require('express')
const router =express.Router()
module.exports =router

const db = require('../db')
const {formatDate} = require('../utils/utils')

router.get('/view',(req,res)=>{
    const deviceAgent = req.headers['User-Agent']
    if(deviceAgent.indexOf('Windows')>=0){
        res.send('趣学旅程PC端')
    }else{
        res.send(' 趣学旅程移动端')
    }
})